# Register your models here.
from apps import adminz
from apps.adminz.views import BatchView, SshSecretFree

#在sites.py中注册，from .views import BatchView django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet
#在views.py中注册，没有效果
adminz.site.register_action(BatchView.as_view(), {
    "action_name": "batch",
    "param": {
        "xxx": "yyy"
    }
})

adminz.site.register_action(SshSecretFree.as_view(), {
    "action_name": "ssh-secret-free",
    "param": {
        "zzz": "aaa"
    }
})

